package com.spark.lola.entity.gds;

import com.baomidou.mybatisplus.annotation.TableName;
import com.spark.lola.support.common.constant.CommonConstant;
import com.spark.lola.support.mybatis.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author dengyejun
 * @since 2020-04-27
 */
@TableName("gds_product_info")
@ApiModel(value="货品", description="")
public class ProductInfo extends BaseModel implements Serializable {
    private static final long serialVersionUID=1L;
    public ProductInfo(){}
    @ApiModelProperty(value = "编码")
    private String no;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "状态")
    private String used= CommonConstant.Y;

    @ApiModelProperty(value = "优先级")
    private Integer priority=0;

    @ApiModelProperty(value = "分类")
    private Long categoryId;

    @ApiModelProperty(value = "供货总额")
    private BigDecimal sales=BigDecimal.ZERO;

    @ApiModelProperty(value = "供货次数")
    private Integer orderCount=0;

    @ApiModelProperty(value = "供货总重(kg)")
    private BigDecimal weight = BigDecimal.ZERO;

    @ApiModelProperty(value = "货运总重(kg)")
    private BigDecimal transportWeight = BigDecimal.ZERO;

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public BigDecimal getTransportWeight() {
        return transportWeight;
    }

    public void setTransportWeight(BigDecimal transportWeight) {
        this.transportWeight = transportWeight;
    }

    public BigDecimal getSales() {
        return sales;
    }

    public void setSales(BigDecimal sales) {
        this.sales = sales;
    }

    public Integer getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }
    
    public String getUsed() {
        return used;
    }

    public void setUsed(String used) {
        this.used = used;
    }
    
    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }
    
    @Override
    public String toString() {
        return "ProductInfo{" +
            "no=" + no +
            ", name=" + name +
            ", picture=" + picture +
            ", used=" + used +
            ", priority=" + priority +
            "}";
    }
}
